const Ajax = window.ajaxbusinessAssets;
const AjaxP = window.ajaxFinancialplan;
import GetJson from '@/api/getJson';
export default {
  // 获取中国map
  getChinaMapJson: params => GetJson.request(process.env.VUE_APP_STATIC_PATH + 'static/map/china.json'),

  // 获取中国省份map
  getProvinceMapJson: param => GetJson.request(process.env.VUE_APP_STATIC_PATH + `static/map/province/${param.jsonName}.json`),

  // 获取中国城市map
  getCityMapJson: param => GetJson.request(process.env.VUE_APP_STATIC_PATH + `static/map/city/${param.jsonName}.json`),
  //分组查询资产包项目列表
  projectList: params => AjaxP.request(`/v1/basic/assetpackage/assetpackage/groupAssetPackageAndProject`, 'post', params, { showLoading: true }),
  //根据省市区查询对应省市区的项目
  projectData: params => Ajax.request(`/v1/basic/project/assetMap/list`, 'post', params, { showLoading: true }),
  //省
  provinceList: params => Ajax.request(`/v1/sys/province`, 'post', params, { showLoading: true }),
  //市
  cityList: params => Ajax.request(`/v1/sys/city`, 'post', params, { showLoading: true }),
  //审批处理
  projectDetails: params => AjaxP.request(`/v1/basic/plan/asset/project/details`, 'post', params, { showLoading: true }),
  //历史记录
  queryPaymentRecordList: params => AjaxP.request(`/v1/basic/charge/queryPaymentRecordList`, 'post', params, { showLoading: true }),
  //付款方式
  constantPaymentMethod: (params) => AjaxP.request(`/v1/constant`, 'get', params, {
    showLoading: true
  }),
  dictionary: params => {
    return AjaxP.request(`/v1/basic/plan/asset/information `, 'post', params, { showLoading: true });
  },
};
